<?php

use Illuminate\Routing\Router;

Route::group([
    'prefix'        => 'admin/DecorationTie',
    'namespace'     => 'Beerus\\Modules\\DecorationTie\\Controllers',
    'middleware'    => [
        'web',
        'admin',
    ],
], function (Router $router) {
    // 白名单配置
    $router->get('/white', 'IndexController@index');
    $router->get('/white/create', 'IndexController@edit');
    $router->get('/white/{id}/edit', 'IndexController@edit');
    $router->post('/white/save', 'IndexController@editSubmit');
    $router->delete('/white/{id}', 'IndexController@delete');
    $router->get('/white/export', 'IndexController@export');
    // 线索管理
    $router->get('/clue', 'ClueController@index');
    $router->get('/clue/create', 'ClueController@edit');
    $router->get('/clue/{id}/edit', 'ClueController@edit');
    $router->post('/clue/save', 'ClueController@editSubmit');
    $router->delete('/clue/{id}', 'ClueController@delete');
});
